package com.neusoft.neuiotms.dcam.fixed.vo;

import javax.validation.constraints.NotBlank;

import org.hibernate.validator.constraints.Length;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class ProductImportVO implements IExcelDataModel, IExcelModel {

    /** 产品名 */
    @NotBlank(message = "产品名不能为空")
    @Length(max = 255, message = "产品名不能超过{max}位")
    @Excel(name = "产品名", orderNum = "0")
    private String name;

    @NotBlank(message = "资产类型不能为空")
    @Length(max = 255, message = "资产类型不能超过{max}位")
    @Excel(name = "资产类型", orderNum = "1")
    private String assetTypeName;

    /** 规格型号 */
    @NotBlank(message = "规格型号不能为空")
    @Length(max = 255, message = "规格型号不能超过{max}位")
    @Excel(name = "规格型号", orderNum = "2")
    private String specification;

    /** 计量单位 */
    @Excel(name = "计量单位", orderNum = "3")
    private String measureUnit;

    /** 原值 */
    @Excel(name = "金额", orderNum = "4")
    private Double money;

    private int rowNum;

    private String errorMsg;

    @Override
    public Integer getRowNum() {
        return this.rowNum;
    }

    @Override
    public void setRowNum(final Integer rowNum) {
        this.rowNum = rowNum;
    }

    @Override
    public String getErrorMsg() {
        return this.errorMsg;
    }

    @Override
    public void setErrorMsg(final String errorMsg) {
        this.errorMsg = errorMsg;
    }

}
